﻿#region << 文 件 说 明 >>

/*----------------------------------------------------------------
// 文件名称：BillBaseModel
// 创 建 者：杨程
// 创建时间：2022/1/29 16:17:48
// 文件版本：V1.0.0
// ===============================================================
// 功能描述：
//
//
//----------------------------------------------------------------*/

#endregion

namespace Vampirewal.Core.Models;

/// <summary>
/// 单据模型基类
/// </summary>

public class BillBaseModel : TopModel
{
    #region 属性

    private string _BillId;

    /// <summary>
    /// Id
    /// </summary>
    [SugarColumn(IsPrimaryKey = true, IsNullable = false, ColumnDescription = "主键")]
    public string BillId
    {
        get
        {
            return _BillId;
        }
        set
        {
            _BillId = value;
            OnPropertyChanged();
        }
    }

    private DateTime? _CreateTime;

    /// <summary>
    /// 创建时间
    /// </summary>
    [SugarColumn(IsNullable = true, IsOnlyIgnoreUpdate = true)]
    public DateTime? CreateTime
    {
        get
        {
            return _CreateTime;
        }
        set
        {
            _CreateTime = value;
            OnPropertyChanged();
        }
    }

    private string _CreateBy;

    /// <summary>
    /// 创建人
    /// </summary>
    [SugarColumn(IsNullable = true, IsOnlyIgnoreUpdate = true)]
    public string CreateBy
    {
        get { return _CreateBy; }
        set { _CreateBy = value; OnPropertyChanged(); }
    }

    private string _CreateUserId;

    /// <summary>
    /// 创建人ID
    /// </summary>
    [SugarColumn(IsNullable = true, IsOnlyIgnoreUpdate = true)]
    public string CreateUserId
    {
        get { return _CreateUserId; }
        set { _CreateUserId = value; OnPropertyChanged(); }
    }

    private DateTime? _UpdateTime;

    /// <summary>
    /// 更新时间
    /// </summary>
    [SugarColumn(IsNullable = true, IsOnlyIgnoreInsert = true)]
    public DateTime? UpdateTime
    {
        get
        {
            return _UpdateTime;
        }
        set
        {
            _UpdateTime = value;
            OnPropertyChanged();
        }
    }

    private string _UpdateBy;

    /// <summary>
    /// 更新人
    /// </summary>
    [SugarColumn(IsNullable = true, IsOnlyIgnoreInsert = true)]
    public string UpdateBy
    {
        get => _UpdateBy; set
        {
            _UpdateBy = value;
            OnPropertyChanged();
        }
    }

    private string _UpdateUserId;

    /// <summary>
    /// 更新人ID
    /// </summary>
    [SugarColumn(IsNullable = true, IsOnlyIgnoreInsert = true)]
    public string UpdateUserId
    {
        get { return _UpdateUserId; }
        set { _UpdateUserId = value; OnPropertyChanged(); }
    }

    #endregion
}